package org.sunyu.sunyutest.javase1;

/**
 * Copyright (C), 2016-2018, 孤城落寞的博客
 *
 * @program: top.gclmit.wlgzs.kh
 * @author: gclm
 * @date: 21/10/2018 2:41 PM
 * @description:
 */
public class Test31 {

    public static void main(String[] args) {
        int sum = 0;
        for(int i =1;i<6;i++){
             for(int j =1;j<6;j++){
                 for(int k =1;k<6;k++){
                     if ((i != k) &&((i != j) && (j != k))){
                         sum++;
                         System.out.println("组成的三位数："+i+j+k);
                     }
                 }
             }
        }
        System.out.println("总个数："+sum);
    }
}
